package com.shop.service;

import com.shop.utils.R;
import com.shop.vo.Cart;
import com.shop.vo.CartItem;

import java.util.List;
import java.util.concurrent.ExecutionException;

public interface Cart_Service {
    //添加商品到购物车
    R addToCart(Long skuId, Integer num) throws ExecutionException, InterruptedException;
    //获取所有购物车
    Cart getCarts() throws ExecutionException, InterruptedException;
    //删除购物车的商品缓存信息
    R deleteCarts(String skuId);
    //修改购物车商品的check选中状态
    R cartUpChecked(Long skuId, Boolean check);
    //获取用户登录后的购买购物项
    List<CartItem> getUserByIdCartItems();
}
